<script>
$(function(){
    $('#form').submit(function(){
        // ajax发送数据
        $.post(location.href,$(this).serialize(),function(data){
            if (data.state <= 0)
            {
                $('#'+data.extra).focus();
                alert(data.message);
                return false;
            }
            //dialogMessage(data.message,'green');
			alert(data.message);
			location.href = "?app=<?=APP?>&mod=manager";
        },'json');
        return false;
    });
});
</script>

<div class="edit_tab tab">
<div class="bg1">
<div class="bg2">
      <span rel="info" class="span_now">添加报修信息</span>
</div>
</div>
</div>
<div >
<table cellspacing="2" cellpadding="2" class="helptable"><tr><td>
<ul>
	<li><b>小提示</b></li>
	<li>(1) <span style="color:red;">红色</span>项为必填项</li>
</ul>
</td></tr>
</table>
</div>
<form id="form">
<div class="post_form" id="info_form">
	<table width="100%" cellpadding="0" cellspacing="0" border="0" class="info_table">
		<tr>
			<td class="td2">标题：</td>
			<td><span><input type="text" style='width:200;' name="title" id="title" value="<?=$this->baoxiu['title']?>" /><font color="#848484"></font></span></td>
		</tr>
        <tr>
			<td class="td2">客户：</td>
			<td><span>
            	<?=$this->customers?>
            </span></td>
		</tr>
		<tr>
			<td class="td2">内容：</td>
			<td>
            	<textarea name="content" id="content" rows="8" cols="80"><?=$this->baoxiu['content']?></textarea>
            </td>
		</tr>
        <tr>
			<td class="td2">下级操作员：</td>
			<td>
				<select name="next_uid" >
					<option value="">请选择</option>
					<?php foreach((array)$this->next_user_list as $user): ?>
					<option value="<?=$user['uid']?>"><?=$user['username']?>[<?=$user['nickname']?>]</option>
					<?php endforeach; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2" style="text-align:center" class="td1">
            	<input type="submit" value="提交"/>
                <input type="hidden" id="bid" name="bid" value="<?=$this->baoxiu['bid']?>"/>
            	<input name="" type="reset" class="btn1" value="重置" />
            </td>
		</tr>
     </table>
</div>
</form>
